home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / daten / quickfile / docs / quickfile.doc < prev    next >
Text File  |  1995-07-31  |  46KB  |  1,319 lines

  1.   Quickfile v3.16.3 copyright 1992-1995 by Alan Wigginton
  2.  
  3. I accept no liability for any loss or damage resulting from the use of
  4. this program.  Users must evaluate the program and decide its usefulness
  5. for their own purposes.
  6.  
  7. QuickFile is not Public Domain, however it can be freely distributed
  8. provided all documentation and sample files are included unchanged.
  9.  
  10. QuickFile is a flexible, flat file database. It uses random access with
  11. indexing for fast access to records. Files can be larger than available
  12. ram, but as much of the file as possible is kept in ram to reduce disk
  13. accesses. Features include:
  14.  
  15.     - Multiple indexes with unique or non-unique keys
  16.     - Data types include character, date, integer, floating point,
  17.       calculation, cycle, image and external
  18.     - Up to 250 characters per field  and 250 fields per record.
  19.     - Form and list style displays and reports.
  20.     - Unlimited number of views of each file.
  21.     - Sort over any number of keys, ascending and descending order.
  22.     - Search operators include Like, Equal, Between, Sounds Like, Not Like
  23.       and Not Equal.
  24.     - Fields can be added, changed, or deleted at any time.
  25.     - ASCII export/import
  26.     - Multi column label printing.
  27.     - Multi-level grouping and totalling
  28.     - Any number of open files each in its own resizable window
  29.     - Online context sensitive AmigaGuide help
  30.     - ARexx port supporting macros and commands from external programs
  31.     - Easy to intuition interface with font sensitivity
  32.  
  33. System Requirements
  34.  
  35.     Any Amiga computer with WB 2.04 or later.
  36.     1 meg or more RAM recommended
  37.  
  38.     Required libraries
  39.     asl.library
  40.     mathieeedoubbas.library
  41.     mathieeedoubtrans.library
  42.  
  43.     Optional libraries
  44.     iffparse.library       - to display Image fields
  45.     rexxsyslib.library     - to use ARexx
  46.     amigaguide.library     - to use on-line help
  47.  
  48.  
  49. QuickFile will work with XFH-handler (a file compression program) but
  50. XFH-handler requires that the decompressed file fit completely in ram.
  51. To work with QuickFile such programs must support update of an existing
  52. file.
  53.  
  54. QuickFile is written in C using DICE version 3.0.
  55.  
  56. ====== CONDITIONS OF USE =====
  57.  
  58. This version of the program can be used for free on the condition that you
  59. write and let me know that you are using it - a postcard will do. The
  60. About requester is displayed when the program starts and ends.
  61.  
  62. Donations of money, stamps, software etc will be gratefully accepted. If
  63. you would like to register for updates, bug fixes and support, please send
  64. at least $20.00 to the address below. Overseas users please use
  65. international money order or bank draft - not personal cheques. Any cash
  66. currency is OK, but you send it at your own risk.
  67.  
  68.       Alan Wigginton
  69.       23 Carissa St
  70.       Shailer Park, Queensland  4128.
  71.       AUSTRALIA
  72.  
  73.       Phone 61 7 3208 9441 (from overseas. Remember time differences)
  74.           07 3208 9441 (from within Australia)
  75.  
  76.       Internet: alanw@mail.powerup.com.au
  77.       FidoNet:  Alan Wigginton   3:640/463
  78.  
  79. Registration will get you the latest version of the program (without the
  80. requester) and prompt attention by email (or snail mail)  to any problems
  81. you may encounter. You will also be advised when major upgrades are
  82. available.
  83.  
  84. I would appreciate any comments or suggestions.
  85.  
  86. WARNING. QuickFile is a random access data base that buffers records in
  87.      memory. Failure to exit the program properly after updates are
  88.      made will result in lost updates.
  89. ALWAYS     exit the program before a reboot or power off.
  90. DO     backup your files regularly.  When backing up a data base make
  91.      sure you backup all of the files - definition, data and indexes.
  92.  
  93. To install QuickFile to a hard disk or floppy, drag the QuickFile icon to
  94. the drawer of your choice. If you want to use the AmigaGuide help system,
  95. copy QuickFile.guide to the same directory. To install AmigaGuide
  96. doubleclick on the InstallAmigaGuide icon.
  97.  
  98. Icons are not generated by the program. Sorry, but if you want them you
  99. will have to create them yourself.
  100.  
  101. ===== Starting QuickFile ======
  102.  
  103. QuickFile may be started from Workbench using either the program icon or a
  104. project icon.
  105.  
  106. It may also be started from the CLI. The program name may be followed by
  107. a file name.
  108.  
  109. QuickFile opens a window on the default public screen. The default window
  110. size is a few pixels smaller than the screen size. Window size and
  111. position are saved when a view is saved.
  112.  
  113. ===== About Views ======
  114.  
  115. Views allow you to display data from a file in different ways. There are
  116. two basic types FORM and LIST.
  117.  
  118. Each view has its own field titles, positions and lengths, window size and
  119. report details. Once you have a view set out the way you want it, you can
  120. save it for future use.
  121.  
  122. The Define View requester is used to select or change the fields included
  123. in a view. The positions of fields on a form can be changed by dragging
  124. them around with the mouse.
  125.  
  126. When you open a file, QuickFile looks for a view called filename.VIEW. To
  127. automatically use your favourite view, save it as filename.VIEW in the
  128. same directory as the data base.
  129.  
  130. If you want to keep things simple and are happy with the default view, you
  131. need not define a view at all.
  132.  
  133. Views are typically used to print labels, export or import selected fields
  134. or print lists containing only selected fields.
  135.  
  136.  
  137. =========== Keyboard ===================
  138.  
  139. The following keys are available when the cursor is not in a string
  140. gadget (Press RETURN or ESC to de-activate a string gadget):
  141.  
  142.    RETURN        Same as OK button
  143.    ESC            Same as CANCEL button
  144.    TAB            Activate first string gadget
  145.    HELP         Displays help. Requires Amigaguide.library in libs: and
  146.             QuickFile.guide in the same drawer as QuickFile.
  147.    Down arrow        Next record
  148.    Up arrow        Previous record
  149.    Shift-down arrow Next page
  150.    Shift-up arrow   Previous page
  151.  
  152. In requesters with a single listview, up and down arrows will move through
  153. the items.
  154.  
  155. The following keys can be used in string gadgets:
  156.  
  157.    TAB              Move to next field
  158.    Shift-TAB          Move to previous field
  159.    Down arrow          Move to next field
  160.    Up arrow          Move to previous field
  161.    Return          De-activate string gadget if value is valid
  162.    ESC              De-activate string gadget ignoring errors
  163.    right Amiga-X      Erase all text in the gadget (as does Control-X)
  164.    right Amiga-Q      Restores the text that was present before you
  165.               changed it.
  166.    Shift-left arrow   Moves the cursor to the beginning of the field.
  167.    Shift-right arrow  Moves the cursor to the end of the field.
  168.    Shift-Del          Erases all characters from the cursor to the end of
  169.               the gadget.
  170.    Shift-Backspace    Erases all characters to the left of the cursor.
  171.  
  172. ============== MAIN WINDOW =================
  173.  
  174. Windows can be resized using the sizing gadget. The zoom gadget will
  175. iconify the window (reduce to a short title bar).
  176.  
  177. ===== Form Display ======
  178.  
  179. The FORM DISPLAY shows a single record per screen in the format specified
  180. by the current view.
  181.  
  182. Field positions can be changed by dragging fields around the window with
  183. the mouse. Field sizes can be changed by dragging the bottom right corner
  184. of the drag box. Note that although field height can be changed, only
  185. images will use more than a single line.
  186.  
  187. Pressing the "R" button displayed at the start of an external field will
  188. run the command defined for the field, provided the field is not empty.
  189.  
  190. To add or delete fields, change field titles or displayed lengths, press
  191. the VIEW button;
  192.  
  193. ===== List Display ======
  194.  
  195. The LIST display shows as many records as will fit in the window with a
  196. single line per record.
  197.  
  198. To update a record double click on it with the left mouse button
  199.  
  200. Before using the Modify or Delete buttons, select a record using a single
  201. press of the left mouse button.
  202.  
  203. In list mode, field position and length can only be changed using the
  204. Define View requester.
  205.  
  206. ===== Buttons =====
  207.  
  208. GoTo
  209.   GoTo finds a record by key value using the current index. This makes
  210.   access extremely fast, even on large files.
  211.  
  212.   You only need to enter enough of the key to identify the record you
  213.   want, but you must start at the first key field.
  214.  
  215. Modify
  216.   Allows you to modify the current record. The horizontal scroll gadget
  217.   can be used to scroll the display and access fields that do not fit in
  218.   the window.
  219.  
  220.   For images or external fields, you can enter the file name in the string
  221.   gadget or press the arrow button to get a file requester. Names entered
  222.   into the string gadget are not validated.
  223.  
  224. Insert
  225.   Displays a blank form for you to enter values for a new record.
  226.  
  227.   The Copy button will copy the contents of the previous record. This is
  228.   useful if you are entering records with similar values in some fields of
  229.   each record. Warning - it replaces anything currently on screen.
  230.  
  231.   Press Cancel (or ESC) to return to Browse mode.  NB When Cancel is
  232.   pressed any values displayed on the screen will be lost.  Press OK
  233.   to insert the record, then Cancel.
  234.  
  235. Delete
  236.  
  237.   Deletes the current record. A requester is displayed to confirm.
  238.   Once the record has been deleted you cannot get it back.
  239.  
  240. Form/List
  241.   Toggles the current view between FORM and LIST formats.
  242.  
  243. View
  244.   Pressing the VIEW button displays the Define View requester with the
  245.   current view.
  246.  
  247. Images
  248.   The Images checkbox in the main window toggles image display on and off
  249.   for faster processing.
  250.  
  251.  
  252. ===== Scrolling =====
  253.  
  254.   Scrolling is controlled by two slider type gadgets.
  255.  
  256.   Vertical Slider
  257.     This controls movement through the file and works in the usual way.
  258.     Scrolling may also be done using the up and down arrow keys for a
  259.     single record, or the shifted keys for a full screen.
  260.  
  261.   Horizontal Slider
  262.    If there are more fields than will fit in the current window, this
  263.    can be used to display the next group of fields.
  264.  
  265. ===========PROJECT  MENU ===================
  266.  
  267. OPEN
  268. Opens a new file in a new window.
  269.  
  270. LOAD
  271. Opens a new file, replacing the file in the current window.
  272.  
  273. SAVE
  274. Writes all updated blocks and indexes to disk.
  275.  
  276. CLOSE
  277. Writes all updated records and indexes to disk and closes the file and
  278. window.  Closing the last window will exit the program.
  279.  
  280. SAVE AS
  281. Creates a new file from the current file. Indexes for the new file are not
  282. created - they will be built when you first open the new file.
  283.  
  284. NEW
  285. Opens a new window for you to define a new file.
  286.  
  287. ALTER
  288. Displays the file definition panel for you to alter the current file
  289. definition. Note that the data and any updated views are saved first.
  290.  
  291. EXPORT
  292. Writes all, or selected, records to an ASCII file for exchanging data with
  293. other applications such as word processors, other data bases etc. The
  294. order and length of the fields in the export file is determined by the
  295. current view. Before doing the export, you may need to create a new view
  296. to give the record layout you want. See export section for details.
  297.  
  298. IMPORT
  299. Loads records from an ASCII file into your data base. The sequence and
  300. length of fields in the input file are determined from the current view.
  301. You should create and select the view before selecting the import
  302. function. See Import section for details.
  303.  
  304. REORGANISE
  305. Reorganises a file by creating a new optimised version and then copying
  306. that version over the main file.
  307.  
  308. Reorganising is not essential, but if you have been doing many additions
  309. and deletions, it may reduce file size and will improve performance.
  310.  
  311. During reorganisation free space is adjusted to the value specified in
  312. the file definition and records are physically stored in the sequence of
  313. the active key. Select your most used key sequence before reorganising to
  314. optimise access with that key.
  315.  
  316. ========= VIEW MENU ==========
  317.  
  318. VIEWS
  319. Displays a requester showing a list of currently loaded views for you to
  320. choose from. If you have not created or loaded any views, you will have a
  321. single view called filename.VIEW.
  322.  
  323. Press the Close button to drop the selected view. You cannot close all
  324. views - you must have at least one loaded.
  325.  
  326. NEW
  327. Creates a new view called 'unnamed' and displays it in the define View
  328. requester.
  329.  
  330. LOAD
  331. Loads another view from disk which becomes the current view.
  332.  
  333. If fields in the view cannot be located in the file definition, they will
  334. be dropped, and a requester displayed to warn you. This will happen if you
  335. delete fields from the file or change field names in the file definition.
  336.  
  337. SAVE
  338. Saves changes made to an existing view. If the view has been newly created
  339. a file requester will be displayed to confirm the name.
  340.  
  341. SAVE AS
  342. Saves the current view under a new name. A view can have any name but the
  343. .view suffix should be used for easy identification.
  344.  
  345. RESET FORM
  346. Resets field positioning back to the default.
  347.  
  348. ========== ORDER MENU =========
  349.  
  350. INDEXES
  351. Displays a list of indexes. Choose an index fromt the list to change the
  352. display sequence. If you have performed a sort or selection, the list will
  353. include "Selected" and/or "Sorted".
  354.  
  355. Pressing the Close Button will remove a "Sort" or "Selection" from memory
  356. and free the space used. To remove any permanent index use the
  357. Project/Alter menu item to alter the file definition.
  358.  
  359. SORT
  360. Displays the sort requester to sort into a new sequence
  361.  
  362. SHOW SORTED
  363. Uses last sort for the display sequence.
  364.  
  365. REBUILD INDEX
  366. Rebuilds the current index from the data file.
  367.  
  368. This can be used if the index and data files are inconsistent for some
  369. reason (eg a system failure). The index is rebuilt from the data file.
  370.  
  371. Try using this if the program is failing with a 'Block not found message'
  372. or any messages to the effect that QuickFile could not find a record it
  373. looked for.
  374.  
  375. ======= SELECTION MENU ===========
  376.  
  377. SELECT
  378. Searches for records matching your selection criteria. See later for full
  379. details.
  380.  
  381. SHOW SELECTED
  382. Displays current selection
  383.  
  384. SHOW ALL
  385. Displays all records. The current selection is retained.
  386.  
  387. ======= PRINT MENU ===============
  388.  
  389. DISPLAYED RECORDS
  390. Prints the records currently displayed on the screen. This will be a
  391. single record for a form display.
  392.  
  393. ALL RECORDS IN CURRENT INDEX
  394. Prints all records in the current index (or Sort or Selection).
  395.  
  396. The fields printed and the style (form or list) of report is determined by
  397. the current view.
  398.  
  399. See Print Requester for full details
  400.  
  401. =============== OPTIONS MENU ====================
  402.  
  403. ABOUT
  404. Too obvious to explain
  405.  
  406. BUFFERS
  407. Displays number  of blocks in the file and the maximum and in-use number
  408. of RAM buffers. You can change the maximum number of ram buffers. To
  409. permanently change the maximum number of buffers, use the Project/Alter
  410. menu item to change the file definition.
  411.  
  412. RUN AREXX MACRO
  413.  
  414. You run an ARexx macro by selecting the Options/ARexx macro menu item.
  415. This brings up a requester for you to enter the macro name.
  416.  
  417. Pressing the 'File' button brings up the file requester for you to choose
  418. the file to be run.
  419.  
  420. If you don't enter a file extension it defaults to ".QuickFile".
  421.  
  422. QuickFile sets the current directory to the database directory before
  423. passing the macro to ARexx. ARexx will look in this directory first, then
  424. in the REXX: directory. I suggest you put macros written for a particular
  425. database in its directory and general macros in the REXX: directory.
  426.  
  427. You can also run an ARexx macro automatically on start up to do things
  428. like loading additional views or selecting an index. Name the script
  429. filename.STARTUP and place it in the same directory as the file.
  430.  
  431. The display is not normally redrawn until the macro completes.
  432.  
  433. This menu item is disabled if RexxSupport.library is not in your libs:
  434. directory. ARexx must also have been started using REXXMAST before you can
  435. run a macro successfully.
  436.  
  437. See the Arexx commands documentation for a description of the commands
  438. available from ARexx.
  439.  
  440.  
  441. CONFIGURATION
  442.  
  443. The Configure Requester is obtained by selecting Configuration on the
  444. Options menu.
  445.  
  446. The settings are saved in a file called "QuickFile.config" in the same
  447. directory as the QuickFile program.
  448.  
  449. Memory Save Checkbox
  450.     Selecting this checkbox tells QuickFile to reduce memory usage.
  451.     It defaults to selected. Deselect this to speed up sorting if you
  452.     are not short of memory.
  453.  
  454. Online Help
  455.     Selecting this checkbox makes the context sensitive AmigaGuide help
  456.     available. It defaults to selected. Help will only be available if you
  457.     have AmigaGuide installed.
  458.  
  459. FONTS
  460.  
  461. To change a font, press the arrow gadget beside the font name. This will
  462. bring up a font requester for you to select a typeface and size.
  463. Note that very wide fonts may trash some gadget imagery.
  464.  
  465. Standard Font
  466.     Specifies the font to use for text in most gadgets. This may be a
  467.     proportional font.
  468.  
  469. List Font
  470.     This is the fixed width font used for list displays. This includes
  471.     QuickFile's list display and Listview gadgets.
  472.  
  473. Report Font
  474.     This font is used for printing reports to the screen. Use a narrow
  475.     font to display more characters on the screen. This also must be a
  476.     fixed width font.
  477.  
  478. Save button
  479.     Saves the settings in the QuickFile.config file and uses the settings.
  480.  
  481. Use button
  482.     Uses the settings but does not save them for permanent use.
  483.  
  484. Cancel button
  485.     Cancels any changes made and retains the previous settings
  486.  
  487.  
  488. ============ DEFINE VIEW REQUESTER =================
  489.  
  490. Name
  491.   Identifies the view. This can be changed for a new view, but is display
  492.   only for an existing view.
  493.  
  494. Available Fields List
  495.   Lists the fields in the current file. Clicking on a field will add it to
  496.   the current view.
  497.  
  498. View Fields List
  499.   Lists the fields in the current view. Clicking on a field in this list
  500.   will select it and display its title and length below the list box.
  501.   These can then be changed if required. The changes will only affect the
  502.   current view.
  503.  
  504.   New fields are added before the currently selected item.
  505.  
  506. Type Buttons
  507.   Choose type of view - FORM or LIST.
  508.  
  509. Headings Check Box
  510.   Field names are displayed if this is checked. This is normally only
  511.   turned off for printing labels.
  512.  
  513. Field Title String Gadget
  514.   This is the text gadget under the View Fields list. You can change the
  515.   field title for this view only. For example you may want a short title
  516.   for a short field on the list display but use the full name for the form
  517.   display. The title can be blank. This gadget is disabled unless one of
  518.   the View Fields is selected.
  519.  
  520. Length String Gadget
  521.   Use this to reduce or increase the field display length for this view
  522.   only.
  523.  
  524. IMPORTANT NOTE: You must press enter after changing either the field name
  525.   or length or your changes will be ignored.
  526.  
  527. Clear Button
  528.   Deletes all fields from the View Fields list.
  529.  
  530. Delete Button
  531.   Deletes the selected field from the View Fields list.
  532.  
  533. =================== SORT REQUESTER ==================
  534.  
  535. Sort creates a temporary index which is discarded when the file
  536. is closed. The sort sequence will be maintained as you add or delete
  537. records.
  538.  
  539. The sort technique used requires that all sort keys be resident in memory,
  540. so record buffers are freed to increase the memory available to the sort.
  541. If you are short of memory, it may help to sort using less than the full
  542. length of long fields.
  543.  
  544. Available Fields
  545.   Lists the fields defined in this file. Clicking on a field will add it
  546.   to the Sort Fields.
  547.  
  548. Index Fields
  549.   Lists the fields to be used for the sort. The order of the fields
  550.   in this box determines their priority in the sort. The first field is
  551.   the primary key, the second will only be used for records where the
  552.   first keys are equal and so on.
  553.  
  554.   Clicking on a field in this list will select it and display its name
  555.   and length below the list box.
  556.  
  557.   New fields are inserted before the currently selected field. To add a
  558.   field to the end of the list, select the "== End ==" entry.
  559.  
  560. Length
  561.   Changing this length allows you to sort over part of a long field, to
  562.   save memory and speed sorting
  563.  
  564.   IMPORTANT: YOU MUST PRESS ENTER OR RETURN AFTER CHANGING A LENGTH OR
  565.          YOUR CHANGES WILL BE IGNORED
  566.  
  567. Order
  568.   Select A..Z for ascending sequence or Z..A for descending. You can mix
  569.   these on different fields in the same index.
  570.  
  571. Clear Button
  572.   Deletes all fields from the Index Field List
  573.  
  574. Delete
  575.   Deletes the selected field from the Index Fields list.
  576.  
  577. ==================== SELECTION ====================
  578.  
  579. A selection is a sub-set of the data base that matches specified
  580. conditions. QuickFile searches through the whole data base looking for
  581. records with fields matching requested values, and creates an index
  582. containing these records. You can then browse, print, export or create a
  583. new database with the selected records.
  584.  
  585. The selection is updated automatically for deletions and changes but not
  586. additions.
  587.  
  588. When displaying a selection, the title bar will show the number of records
  589. in the selection.
  590.  
  591. The selected data will be in the same sequence as the current Index.  You
  592. can sort it into another sequence if required.    If the current index is
  593. the result of a previous selection, only the selected records are
  594. searched.
  595.  
  596. You can use any number of criteria for a search, but the more you have the
  597. slower the search will be.
  598.  
  599. ============== Search Panel =================
  600.  
  601. The Search Panel displays a list of search criteria with buttons for
  602. inserting, modifying and deleting them.
  603.  
  604. Two values can be specified for each item. The second value is primarily
  605. for the Between operator, but it can be used to specify an alternative
  606. value for the other operators.
  607.  
  608. Clicking on the Insert or Modify displays the Search Details requeste for
  609. you to insert or modify the details.
  610.  
  611. For insertions, the new item will be inserted before the selected item. To
  612. insert a new item at the end of the list, select the "== End ==" item.
  613.  
  614. Clicking on delete will bring up a requester for you to confirm the
  615. deletion of the selected item.
  616.  
  617. Search criteria linked with 'and' will select only records that match both
  618. criteria, while search criteria linked with 'or' will select records that
  619. match either criteria.
  620.  
  621. 'And' has higher precedence so criteria are formed into groups split by
  622. 'or'. All criteria in a group must be satisfied for a record to be
  623. selected, but a record will be selected if it matches any group. That is
  624. confusing and is probably best explained with an example:
  625.  
  626.       Occupation equal     programmer
  627.   and location     equal     sydney
  628.   or  Occupation equal     programmer
  629.   and location     equal     canberra
  630.  
  631. This will find all programmers who live in Sydney or Canberra. Note that
  632. Occupation had to be repeated. The following would give all programmers
  633. who live in Sydney and EVERBODY who lives in Canberra.
  634.  
  635.       Occupation equal     programmer
  636.   and location     equal     sydney
  637.   or  location     equal     canberra
  638.  
  639. You can also do things like
  640.  
  641.        Name     like     john
  642.   and  Name     notlike smith
  643.  
  644. which would find all persons named John, except those named John Smith.
  645.  
  646. ========= Search Details ======================
  647.  
  648. And, Or Buttons
  649.   Choose AND or OR to specify how this search item is combined with the
  650.   previous one. These are not present for the first item.
  651.  
  652. Available Fields List
  653.   Lists all the fields in the file defintion. The current selection is
  654.   displayed under the list.
  655.  
  656. Comparison Operator (like, equal etc)
  657.   Choose the operator to be used for this search item. (see below)
  658.  
  659. Value 1
  660.   The primary search value. It is always used. If you want to search for
  661.   empty fields leave this empty.
  662.  
  663. Value 2
  664.   This is the secondary search value. Its primary use is with the between
  665.   operator but can be used to enter an second search value for the other
  666.   operators.
  667.  
  668.   Note that with Not Equal and Not Like, value 1 and value 2 are joined by
  669.   AND rather than OR. It will find all records except those that contain
  670.   value 1 or value 2. Using OR in this situation would select every
  671.   record.
  672.  
  673. ======= Search Operators ===============
  674.  
  675. Like
  676.   Matches fields that contain the search string anywhere within them. eg
  677.   "bit" would find "The Hobbit" and "Bitter Sweet".
  678.  
  679. Equal
  680.   Matches a field only if it exactly equals the search value. Case is not
  681.   significant so that dog will match Dog or even dOG.
  682.  
  683. Between
  684.   Matches a field with a value equal to or between the specified pair of
  685.   values. This can also be used to perform a less than or greater than
  686.   search. e.g. 'between 41 and 999' is the same as 'greater than  40'.
  687.  
  688. Sounds Like
  689.   Matches fields where the first word sounds like the search value. This
  690.   is really a bit of a gimmick as it is not very smart. NOTE it only looks
  691.   at the first word of the field.
  692.  
  693. Not Like
  694.   As for like but only matches records that do not contain the search
  695.   value.
  696.  
  697. Not Equal
  698.   As for equal but only matches records that do not match the search
  699.   value.
  700.  
  701. ====== EXPORT REQUESTER ======
  702.  
  703. A number of preset formats are provided or you can tailor your own record
  704. and field Separators by selecting the Custom format.
  705.  
  706. The headers button determines whether a header record containing the field
  707. names is to be included at the start of the file.
  708.  
  709. Pressing the OK Button displays a file requester for you to specify the
  710. name of the export file.
  711.  
  712. All records from the current index will be written. If you are displaying
  713. Selected records, only the selected records will be written.
  714.  
  715. ====== IMPORT REQUESTER ======
  716.  
  717. One preset format("...",) is provided or you can tailor your own by
  718. selecting Custom and choosing the Record and Field separators.
  719.  
  720. Both sequence and length can be different from that in the database. Also,
  721. not all database fields need to be present in the ASCII file. Any fields
  722. not present will be set to blank in your data base.
  723.  
  724. NB: It is vital that the sequence and number of fields you set in the
  725. selected fields box of the field selector correspond to the sequence of
  726. fields in the ASCII file you are importing.
  727.  
  728. Make you sure to backup your database before you import a file into an
  729. existing data base. If you get the format wrong, it is easier to restore
  730. than to fix or delete all of the incorrect records.
  731.  
  732. Also use plenty of buffers if you are going to import a large number of
  733. records.
  734.  
  735. ============ Preset Export/Import Formats =================
  736.  
  737. A number of preset formats are provided including the mailmerge formats for
  738. some wordprocessors:
  739.  
  740.  Custom
  741.    Allows you to define your own format using predefined Separator
  742.    characters.
  743.  
  744.  "...",
  745.    This is a quote and comma delimited text file such as used for data for
  746.    BASIC programs.
  747.  
  748. The following preset formats are available only for Export, not Import.
  749.  
  750.     Final Copy
  751.     Interword
  752.     KindWords 3
  753.     ProWrite
  754.     WordWorth
  755.  
  756. Only the KindWords 3 and Interword versions have been tested.
  757.  
  758. ====== Field and Record Separators ========
  759.  
  760. You can only select from the predefined delimiter codes.
  761.  
  762.   Field Start
  763.   The character that marks the start of a field.
  764.  
  765.   Field End
  766.   Marks the end of a field. It differs from the field separator in that a
  767.   separator does not appear after the last field in a record while a field
  768.   end character appears after every field.
  769.  
  770.   Field Separator
  771.   Separates fields in the record. It does not appear after the last field
  772.   in the record
  773.  
  774.   Record End
  775.   Marks the end of a record
  776.  
  777. If Field Start is used, a Field End must also be used. If neither Field End
  778. nor Field Separator is used, the records will be fixed length with each
  779. field padded to its maximum length with spaces.
  780.  
  781.  
  782. ============= PRINT REQUESTER =====================
  783.  
  784. Title
  785.   This is printed, centered, at the top of each page of your report.
  786.   Current date is printed at the left margin and the page number at the
  787.   right margin.
  788.  
  789.   The title line is only printed if you enter a Title. Note that even a
  790.   single space will print a blank title.
  791.  
  792. Left and Right Margins
  793.   Character position of left and right margin.
  794.  
  795. Lines/Page
  796.   This controls the number of lines QuickFile will use on each page. The
  797.   default is paper size minus 8 to provide a top and bottom margin.
  798.  
  799.   NB QuickFile issues a Form Feed when a new page is required. This
  800.   relies on your setting the page height on your printer correctly, and
  801.   may be a limitation with some printers. If you have a problem with this,
  802.   let me know and I will look at using the preferences paper size.
  803.  
  804.   A value of zero will suppress the report title and page breaks.
  805.  
  806. Print Pitch  Cycle Gadget.
  807.   As for Workbench printer preferences
  808.  
  809. Lines Per Inch Cycle Gadget
  810.   This button toggles between 6 and 8 lines per inch.
  811.  
  812. Output To   Cycle Gadget
  813.   Allows you to send the report to the printer, window or a file. The file
  814.   will not include any printer escape codes.
  815.  
  816. The other objects displayed depend on whether you are printing a List or
  817. Form view.
  818.  
  819. FORM View
  820.  
  821.  A number of additional fields are displayed for controlling multiple
  822.  columns such as multi-column address labels. See Labels for full details.
  823.  
  824.  
  825. LIST View
  826.  
  827.   Group By List
  828.   This lists any report groups for this report. See Report Groups.
  829.  
  830.   Summary Only Check Box
  831.   If checked, only sub-total and total lines are printed. The "Group By"
  832.   field values are printed with the summary values for the group. Note
  833.   that an extra 4 characters are added at the start of each line for the
  834.   summary type (Cnt, Tot, etc). You must define a Report Group for this to
  835.   work. See the Address Book example database.
  836.  
  837.   Wrap Fields Check Box
  838.   If checked this will wrap fields over succeeding lines where the field
  839.   length is longer than the width defined for the view. The wrapping is
  840.   done on word boundaries if possible.
  841.  
  842. Press the OK button to start printing or the cancel button to cancel any
  843. changes you have entered.
  844.  
  845. Saving the view will save all of your report settings.
  846.  
  847. ========= Labels ============
  848.  
  849. Label printing is available for FORM type views only. You will normally
  850. define a special view and:
  851.  
  852.    Set Field Labels for the view to No
  853.  
  854.    Arrange the fields in the top left hand corner of the FORM screen to
  855.    match the desired label format
  856.  
  857.    Use the following fields in the print requester to control your label
  858.    format.
  859.  
  860. Labels Across
  861.   Number of labels to print across the page
  862.  
  863. Label Width
  864.   Width of each label. One additional space will be allowed
  865.   between labels. If you want to print labels further apart, increase this
  866.   value.
  867.  
  868. Labels Down
  869.   Number of labels to print down the page before starting a new column.
  870.   For example 3 across and 4 down will print in the following sequence:
  871.  
  872.       1      5      9
  873.       2      6     10
  874.       3      7     11
  875.       4      8     12
  876.  
  877. Label Height
  878.   Height of each label in lines. An additional blank line will be printed
  879.   between each label. The default is the number of lines in the form.
  880.  
  881. You will probably want to set Lines Per Page to zero to suppress page
  882. breaks as well.
  883.  
  884. If you are printing a single column of labels only, you can leave all of
  885. the above fields blank and let the number of lines in the form determine
  886. the label height.
  887.  
  888. ======== Report Groups ===================
  889.  
  890. You may know report groups as control breaks. A "group by" field is only
  891. printed when its value changes. You can also calculate summary values for
  892. each group. Each group can be based on several fields, although usually
  893. only one is used. Any number of fields may be summarised for a group.
  894.  
  895. Note that records must be sorted into the correct sequence for this to
  896. work correctly. They are not sorted automatically.
  897.  
  898. The types of groups available are
  899.  
  900. Report.  Gives a summary value for the whole report. If used, it must
  901.      be the first group in the list.
  902. Page.     Groups will start on a new page. Group fields will print
  903.      before column headings.
  904. Subtitle Prints the group fields on a separate line at the start of each
  905.      group. Reduces line length but best when each group contains
  906.      a good number of records.
  907. Normal     Field prints in the first line of the group only, but space
  908.      is used in each line.
  909.  
  910. You can have several levels of groups of the same type, but they must be
  911. listed from highest level to lowest.
  912.  
  913. ============= Report Group Example ============
  914.  
  915. The following example shows two groups with totals.
  916.  
  917.    Group 1 : City     Type: Normal   Group Fields: City
  918.                      Summaries:    Value (total)
  919.  
  920.    Group 2 : Salesman Type: Normal   Group Fields: Salesman
  921.                      Summaries:    Value (total)
  922.  
  923.    Resulting report:
  924.  
  925.     City    Salesman    Client             Value
  926.     ----------    -------------    --------------     ---------
  927.     Brisbane    Fred Smith    ABC Company       8000.00
  928.                 XYZ Limited       6400.00
  929.                 Zip Electronics   12000.00
  930.  
  931.     Salesman Tot                  26400.00
  932.  
  933.         John Brown    ZZZ Computers       5000.00
  934.                 GWZ Peripherals    7200.00
  935.  
  936.     Salesman Tot                  12200.00
  937.  
  938.     City Tot                      28600.00
  939.  
  940. Note: The file must be sorted over City and Salesman for this to print
  941. correctly.
  942.  
  943. ========== Report Group Requester ============
  944.  
  945. This defines the type, grouping fields, and summaries for a single report
  946. group.
  947.  
  948. Group string gadget
  949.   Names the group. This name is printed on summary lines.
  950.  
  951. Type
  952.   Type of group
  953.  
  954. View Fields list
  955.   Lists the fields available in the current view. The selected field in
  956.   this list can be added to either the Group Fields or Summaries lists.
  957.  
  958. Group Fields list
  959.   Lists the fields used for gouping. A new group starts when any of these
  960.   fields change. A group field is not required for a Report level group.
  961.  
  962. Summaries list
  963.   Lists the fields to be summarised for this group. Selecting an item from
  964.   this list will update the check boxes to show the summaries requested.
  965.   Use the INS button to add the selected view field to this list.
  966.  
  967. Tot, Cnt, Avg check boxes
  968.   Show the summaries required for the currently selected Summary field.
  969.   Any or all may be checked for one field.
  970.  
  971. OK and Cancel Buttons
  972.   Return to the Print Requester.
  973.  
  974. ============== DEFINING FILES  ===================
  975.  
  976. Use the Project/New menu item to define a new file.
  977.  
  978. Use the Project/Alter menu item to change the definition for the current
  979. file.
  980.  
  981. You can change just about everything in a file definition, except the
  982. block size, even after you have loaded data to the file. You can change
  983. field names, types and lengths. You can add or delete fields, and add or
  984. delete indexes. Caution should be used when changing the type for fields
  985. that contain data.
  986.  
  987. WARNING: Deleting a field makes its data inaccessible, even if you
  988.        re-add the same field. If you accidentally delete a field, reload
  989.        the definition without saving your changes and start your changes
  990.        again.
  991.  
  992. The fields defined for this file are listed in the box at the right of the
  993. window. Use the buttons beside the window to add, change or delete fields.
  994.  
  995. If a field is highlighted when you press add, the new field will be added
  996. before the selected field. To add a field to the end of the list, select
  997. the "== End ==" item.
  998.  
  999. The indexes (indices?) are listed in the box at the lower left. Use the
  1000. buttons to add, change or delete indexes.
  1001.  
  1002. ================ File Details =================
  1003.  
  1004. The file details are shown at the top left of the QFDefine window
  1005.  
  1006. Block Size
  1007.   QuickFile does not read and write single records at a time, but builds
  1008.   them into blocks. This reduces the number of disk reads and writes
  1009.   required. Around 2000 seems to give good results. The only way to change
  1010.   block size is to export the whole file, define a new data base and use
  1011.   import to recreate your file. Block size must be larger than the maximum
  1012.   record size plus free space, plus some space for control fields (2 bytes
  1013.   per field plus 2 bytes for the record length).
  1014.  
  1015. Free Space
  1016.   The amount of free space to be left in each block to allow for records
  1017.   to expand. As QuickFile only stores the actual data entered (not
  1018.   trailing blanks), additional space is required if a change makes a field
  1019.   longer. 100 seems to work OK. Records are moved to another block if
  1020.   necessary, so this is not critical.
  1021.  
  1022. Buffers
  1023.   Maximum number of buffers QuickFile will use for holding blocks of
  1024.   records in memory. Unless you have very large files or are short of
  1025.   memory, use a large figure such as 100.  QuickFile will never use more
  1026.   buffers than are required for the whole file.
  1027.  
  1028.   The more of the file in memory, the faster QuickFile works. The memory
  1029.   used is approximately (number of buffers * buffer size).
  1030.  
  1031.   WARNING. If you using a compression program like XFH-handler with
  1032.   QuickFile, set the number of buffers to 3. XFH will already have the
  1033.   decompressed copy of the file in ram.
  1034.  
  1035.  
  1036. Ext. Path
  1037.   This is a default path used for images and external files. The file name
  1038.   in each record is stored as a name relative to this path, which can
  1039.   reduce the number of characters in each record.
  1040.  
  1041.  
  1042. =========== Field Requester ===========
  1043.  
  1044. Name string gadget
  1045.   Enter a name of up to 12 characters for the field.
  1046.   Note that changing the field name does not change the field title in
  1047.   any existing views.
  1048.  
  1049. Length
  1050.   60 characters is a practical maximum length as no left and right
  1051.   scrolling is provided and more characters cannot be displayed.
  1052.   The maximum is 250. The minimum length of a date field is 11 characters.
  1053.  
  1054.   Space is used only for the number of characters entered in each record,
  1055.   not for the maximum field length. In fact, if a field is empty it takes
  1056.   up no space at all.
  1057.  
  1058. Decimals
  1059.   Number of decimals stored and displayed for the field. Values entered in
  1060.   the field will be rounded to this number of decimals.
  1061.  
  1062. Type  Push buttons
  1063.   Choose type of field. See below for the available types
  1064.  
  1065. Mandatory Check Box
  1066.   If checked, the field must have a value in all records. You will not be
  1067.   able to add a new record without a value in this field.
  1068.  
  1069. Justify Right Check Box
  1070.   If checked, the field is right justified. Integer, Float, and Caculated
  1071.   fields default to right, character and date fields default to left.
  1072.  
  1073. Expression String Gadget
  1074.   Contents depend on field type
  1075.  
  1076.     Calc:    The expression to calculate the field value
  1077.     Cycle:    The list of possible values
  1078.     External:    The command string to be run to process the field content.
  1079.  
  1080.   See field types for more detail.
  1081.  
  1082. =============== Field Types ===============
  1083.  
  1084. Character
  1085.   General character string.
  1086.  
  1087. Integer
  1088.   Whole number, no decimals.
  1089.  
  1090. Float.
  1091.   Real numbers with decimals.
  1092.  
  1093. Calculated
  1094.   The field value is calculated from other fields, which may themselves be
  1095.   calculated fields.
  1096.  
  1097.   Enter the calculation in the expression string gadget. The expression
  1098.   can contain field names, constants, and the add (+), subtract (-),
  1099.   multiply (*) and divide (/) operators. Field names containing spaces
  1100.   must be enclosed in double quotes ("). Normal precedence rules apply and
  1101.   brackets may be used to control sequence. Fields must be defined before
  1102.   they can be referenced.
  1103.  
  1104. Date
  1105.   These have a minimum length of 11 characters and are always entered as
  1106.   day/month/year.
  1107.  
  1108.   The separator can be any of /-. or a space. Month can be entered as a
  1109.   number or a three character name. Year can be entered as two or four
  1110.   digits. If two digits are used, a number greater than 50 is assumed to
  1111.   be this century, 50 or less, the next century.
  1112.   For example 03/08/93    3-8-93    3.aug.93  03 aug 1993 are all valid
  1113.  
  1114.   Dates are always displayed in the format 14-Apr-1993.
  1115.  
  1116. Cycle
  1117.   A list of values is associated with a cycle field. The value is
  1118.   maintained using a cycling button instead of a string gadget.
  1119.  
  1120.   Enter the list of values, separated by commas, in the expression string
  1121.   gadget. Any spaces you enter will be included in the value - you
  1122.   probably don't want leading spaces.
  1123.  
  1124.     for example  Blue,Green,Light Blue,Red
  1125.     instead of     Blue, Green, Light Blue, Red
  1126.  
  1127. Image
  1128.   An image that is displayed in the QuickFile window. Only the file name
  1129.   is stored in the database.
  1130.  
  1131. External
  1132.   Holds file names that can be run using an external program. This can be
  1133.   used for images, sounds, text files, animations or whatever. Enter the
  1134.   command template in the expression string gadget with %s to represent the
  1135.   file name. The full path name of the command is required. For example
  1136.  
  1137.     dh0:utilities/display %s
  1138.  
  1139.   At run time %s will be replaced with the contents of the field in the
  1140.   data base record
  1141.  
  1142.  ============== Indexes =============
  1143.  
  1144. You must define at least one index. If you are not sure pick any field
  1145. that will give a useful sequence, such as surname, title etc. Each index
  1146. can use a number of fields to give precise control of sequence.
  1147.  
  1148. You can have any number of indexes but you should limit yourself to those
  1149. you are going to use regularly.
  1150.  
  1151. You can index on any field type including calculated fields. You can also
  1152. define an index as unique to prevent duplicate records being created.
  1153.  
  1154. If you change an index on an existing file, it will be rebuilt when you
  1155. return to the main display panel.
  1156.  
  1157. Select the index from the list and press the appropriate button. The Index
  1158. Requester is used to define or alter an index definition.
  1159.  
  1160. Indexes are maintained automatically as you add, modify and delete records
  1161. on your file so they reduce the need for sorting and resorting.
  1162.  
  1163. ============ Define Index Requester =================
  1164.  
  1165. Name
  1166.   Identifies the index and is also used to form the index file name.
  1167.  
  1168. Unique CheckBox
  1169.   If checked, duplicate index entries will not be allowed.
  1170.  
  1171. Available Fields
  1172.   Lists fields defined in this file. Clicking on a field will add it to
  1173.   the fields selected for this index.
  1174.  
  1175. Index Fields
  1176.   Lists fields in the current index. The order of the fields in this box
  1177.   determines their priority in the sort. The first field is the primary
  1178.   key, the second will only be used for records where the first keys are
  1179.   equal and so on.
  1180.  
  1181.   Clicking on a field in this list will select it and display its name
  1182.   and length below the list box.
  1183.  
  1184.   If a field is highlighted, any new fields will be added before the
  1185.   highlighted field, otherwise new fields will be added at the end. To
  1186.   remove highlighting click in the blank part of the box.
  1187.  
  1188. Length
  1189.   Changing this length allows you to index on part of a long field. This
  1190.   reduces memory usage and may increase speed.
  1191.  
  1192.   IMPORTANT: YOU MUST PRESS ENTER OR RETURN AFTER CHANGING A LENGTH OR
  1193.          YOUR CHANGES WILL BE IGNORED
  1194.  
  1195. Order Buttons
  1196.   Select A..Z for ascending order or Z..A for descending order. You can
  1197.   mix these on different fields in the same index.
  1198.  
  1199. Delete
  1200.   Deletes the highlighted field from the Index Fields list.
  1201.  
  1202. ===== FILE NAMES =============
  1203.  
  1204.    QuickFile uses four types of file distinguished by extension. Changing
  1205.    these with an  editor will probably corrupt the file. YOU HAVE BEEN
  1206.    WARNED.
  1207.  
  1208.    The DEFINITION FILE has no extension. This is the name you enter when
  1209.    specifying a file name for QuickFile.
  1210.  
  1211.    The DATA FILE has an extension of .Data.
  1212.  
  1213.    VIEW files usually have an extension of .View
  1214.  
  1215.    INDEX FILES have an extension of .nameX where 'name' is the name of the
  1216.    index as specified in the file definition.
  1217.  
  1218. ========== POSSIBLE PROBLEMS =================
  1219.  
  1220. INDEX DOESN'T MATCH DATA FILE
  1221.  
  1222. It is possible for an index and data file to get out of synchronisation.
  1223. This can be caused by not closing a file properly, typically because of a
  1224. guru or power loss with a file open.
  1225.  
  1226. If you suspect an index has been corrupted in some way, you can delete the
  1227. index file (called filename.indnameX).  When you next open the file, the
  1228. index will be rebuilt.    This is indicated by a message such as "getblock:
  1229. Block not found" being displayed in the Console window.
  1230.  
  1231. You can also rebuild an index by selecting the Rebuild Index item from
  1232. the QuickFile tools menu.
  1233.  
  1234. IF YOU ARE SHORT OF MEMORY
  1235.  
  1236. Some tips for reducing memory requirements:
  1237.  
  1238.   Disable the online help. You can do this using the Configuration item
  1239.   on the Options menu
  1240.  
  1241.   Ensure the Memory Save checkbox is checked in the Config requester. This
  1242.   will reduce the memory used during sorts.
  1243.  
  1244.   Define only a single index. That is still one more than most programs
  1245.   allow.
  1246.  
  1247.   Hard drive users can reduce the number of buffers. This will also work
  1248.   with floppies but may be unacceptably slow.
  1249.  
  1250.   Disable ARexx using the Config menu item in the Options menu. This will
  1251.   prevent QuickFile opening rexxsyslib.library.
  1252.  
  1253.   If you are using a compression program such as XFH-handler, reduce the
  1254.   number of buffers in the file definition to 3. Otherwise both XFH and
  1255.   QuickFile will be holding the file in ram:
  1256.  
  1257. BUGS
  1258.  
  1259. The program has been reasonably tested, but only on my A500. Some bugs
  1260. refuse to show up until you hit exactly the right combination of
  1261. conditions, so please let me know of any problems you find. Known problems
  1262. (limitations really) are:
  1263.  
  1264. - If you drag a field off the bottom of the window, the drag box is drawn
  1265.   over the border but is not erased properly if you release the mouse
  1266.   button.
  1267.  
  1268. - Date and character fields cannot be used in calculations but you can
  1269.   enter them into expressions.
  1270.  
  1271. - A Field is clipped horizontally, but not vertically, if it does not fit
  1272.   completely in the visible window. This causes images to disappear instead
  1273.   of being clipped if you make the window too small.
  1274.  
  1275. - No attempt is made to remap image palettes. You may get odd colours or
  1276.   a block of a single colour.
  1277.  
  1278. - Switching views from an ARexx macro can cause a series of window redraws
  1279.   to occur after the macro has completed. This is because switching views
  1280.   can cause window resize messages to be sent by Intuition and these are
  1281.   not seen by QuickFile until the macro completes.
  1282.  
  1283. - Disk thrashing can occur on startup if the file contains images because
  1284.   QuickFile is trying to load an image while AmigaGuide is scanning the
  1285.   QuickFile.guide file.
  1286.  
  1287. If you write to me with a problem you would like fixed, it is much easier
  1288. for me if you send a copy of your database, the version of the program you
  1289. are using, and instructions on how to duplicate the problem.
  1290.  
  1291. ========== Program Limits ==============
  1292.  
  1293. Field Length
  1294.  
  1295.     While up to 250 characters are allowed per field, this is not very
  1296.     useful as each field is limited to one line.
  1297.  
  1298. Number of Records per File
  1299.  
  1300.     The theoretical limit is currently 65,535. In practice it is much
  1301.     lower because of the indexing technique which will run out of either
  1302.     memory or processor speed. Each index requires a contiguous area of
  1303.     RAM 4(n + 200) bytes in size, where n is the number of records in the
  1304.     file. The sort technique also limits the size of the file.    The sort
  1305.     loads all sort keys to ram and also requires 8 bytes per record in one
  1306.     contiguous area.
  1307.  
  1308.     A realistic maximum is probably in the order of 10,000 to 20,000.
  1309.  
  1310. Number of fields per record
  1311.  
  1312.   250. But I got bored at about 60, so you take your chances if you want
  1313.   to try more.
  1314.  
  1315. Number of indexes
  1316.  
  1317.   No limit.
  1318.  
  1319.